package com.sl.au.service;

import java.util.List;

import org.springframework.data.domain.Sort.Direction;

import com.sl.au.entity.BusinesssellerBaseInfo;
import com.sl.au.repository.BusinesssellerBaseInfoRepository;

public interface BusinesssellerBaseInfoService  extends BaseService{

	BusinesssellerBaseInfoRepository getRepository();
	
	List<BusinesssellerBaseInfo> findAll();

	BusinesssellerBaseInfo findByBussinessSellerId(String bussinessId);
    
	List<BusinesssellerBaseInfo> getPage(int start, int length, String key, String orderName, Direction dir);
	
	List<BusinesssellerBaseInfo> getPage(int start, int length, String key, String level, String orderName, Direction dir);
	
	List<BusinesssellerBaseInfo> getPageByLevel(int start, int length, String key, String level, String orderName, Direction dir);
	
	List<BusinesssellerBaseInfo> getPageByNoLevel(int start, int length, String key, String orderName, Direction dir);
    
	int getCount(String key);
	int getCount(String key, String level);
	
	int getCountByNoLevel(String key);
	
	int getCountByLevel(String key,String level);
	
	int savepicture(String url,String name);
	
	void deleteBussinessLevel(String[] ids);
}
